.dux-tree {
  h2 {
    font-weight: normal;
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
  }

  ul, li {
    list-style: none;
    white-space: nowrap;
  }

  ul {
    margin: 0;
    padding: 0;

    a {
      padding: 0 5px;
      color: #666;

      &:hover {
        background: $global-primary-background;
        color: #fff;
      }
    }

  }

  .active > h2 > a {
    background: $global-primary-background;
    color: #fff;
  }

  & > h2 {
    padding-left: 10px;
  }

  li {
    background: url("../images/tree_line.png") repeat-y;
    background-position: 0 0;
    padding-left: 20px;
  }

  ul h2 {
    background: url("../images/tree_middle.png") no-repeat;
    background-position: 0% 50%;
    padding-left: 20px;
    height: 30px;
    line-height: 30px;
  }
}

.dux-alert-list {
  background-color: rgba(59, 180, 242, .15);
  border-left: 5px solid #81b9ef;
  padding: 10px;
}

.dux-alert-list > *:last-child {
  margin-bottom: 0;
}

.dux-images-drag {
  border: 1px solid #ddd;
  cursor: pointer;
  position: relative;
  background: #fff;
  .image {
    width: 150px;
    height: 120px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      max-width: 100%;
      max-height: 100%;
    }
  }
  .del-layout {
    display: none;
  }
}

.dux-images {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  li.uk-sortable-placeholder, li.uk-sortable-item {
    border: 1px dashed #ccc;
  }
  li.uk-sortable-placeholder {
  }
  li {
    margin-top: 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    &.del-show {
      .del-layout {
        display: flex;
      }
    }
    .image {
      width: 150px;
      height: 120px;
      padding: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        max-width: 100%;
        max-height: 100%;
      }
    }
    .del-layout {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0, .2);
    }
  }
}



.dux-timeline {
  padding: 20px;
  padding-bottom: 0;

  dl, dt, dd {
    margin: 0;
    padding: 0;
  }

  p {
    margin: 0;
  }

  dl {
    border-left: 1px solid #ccc;
    min-height: 30px;
    padding-bottom: 8px;
    padding-top: 8px;

    &:first-child {
      color: $global-primary-background;

      dt {
        color: $global-primary-background;
      }

      dt:before {
        border-color: $global-primary-background;
      }
    }
  }

  dt {
    padding-left: 20px;
    position: relative;
    font-weight: normal;
    color: #999;
  }

  dt:before {
    position: absolute;
    content: '';
    border: 2px solid #ccc;
    background-color: #fff;
    display: inline-block;
    width: 13px;
    height: 13px;
    left: -7px;
    border-radius: 50%;
    top: 5px;
  }

  dd {
    padding-left: 20px;
    line-height: 22px;
    color: #666;
  }

}